<?php
/**
 * Created by PhpStorm.
 * User: Min
 * Date: 2018/4/18
 * Time: 14:51
 */

namespace SDXApi\Model;


use Think\Model;

class SeminarTemplateTagModel extends Model
{
    /**
     * 获取标签列表
     * @author Min
     * @param $page_id
     * @return mixed
     */
    public function getTagList($page_id)
    {
        $where = array(
            'page_id' => $page_id
        );

        $field = 'tag_id,tag_name,image';

        return $this->where($where)->field($field)->order('sort desc')->select();
    }

}